package com.samebuilding.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.samebuilding.dao.UserActivityDAO;
import com.samebuilding.domain.UserActivity;
import com.samebuilding.service.UserActivityService;

public class UserActivityServiceImpl implements UserActivityService {
	private UserActivityDAO userActivityDAO;
	private static final Log logger=LogFactory.getLog(UserActivityServiceImpl.class);
	public UserActivityDAO getUserActivityDAO() {
		return userActivityDAO;
	}

	public void setUserActivityDAO(UserActivityDAO userActivityDAO) {
		this.userActivityDAO = userActivityDAO;
	}

	@Transactional(propagation=Propagation.REQUIRED)
	public void addUserActivity(UserActivity userActivity) {
		this.userActivityDAO.save(userActivity);
	}

	public List<UserActivity> getDynamicActivity(int userNo) {
		logger.debug("[friend activity]:");
		List list=new ArrayList();
		
		return list;
	}

}
